package cate.game.activity.godequip.msg;

import cate.game.GameBody;
import cate.game.activity.godequip.GodEquipActivityHandler;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBGodEquip;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "神装寻宝全服记录 的 请求")
public class GodEquipLogReq implements MsgInput {
    @NoteField("功能id")
    public int funcId;
    @NoteField("活动id")
    public int activityId;
    @Override
    public void execute(GameBody game, ClientContext cc) {
        GodEquipActivityHandler handler = game.activityGlobal.getEnableHandler(funcId);
        cc.sendNow(new GodEquipLogResp(handler.getLog(activityId)));
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBGodEquip.GOD_EQUIP_LOG_REQ;
    }
}
